/**
 * $Id$
 *
 * Unpublished Work Copyright 2013 Confirmit, Inc. All Rights Reserved.
 *
 * Last changed by $Author$
 * Last changed at $Date$
 */
package com.youtills.core.app.common;

import com.youtills.core.web.ContextBean;
import com.youtills.core.web.IRequestHandler;
import com.youtills.core.web.IResponse;
import com.youtills.core.web.LayoutResponse;

/**
 * TODO
 *
 * @author Ravi Kumar Chiluveru (ravic)
 * @since 12.2, (5/19/13 10:53 AM)
 */
public class SiteLayout implements IRequestHandler, ISiteLayout{

    private ContextBean contextBean;

    public void setContextBean(ContextBean contextBean) {
        this.contextBean = contextBean;
    }

    public ContextBean getContextBean() {
        return contextBean;
    }

    public IResponse handleRequest() {
        return showSite();
    }

    public String getMainContentPage() {
        return null;
    }

    public String getMainPage() {
        return "/WEB-INF/jsp/common/layout.jsp";
    }

    public String getTitle(){
        return null;
    }

    public String getRightContentPage() {
        return null;
    }

    protected IResponse showSite(){
        return new LayoutResponse<ISiteLayout>(this);
    }
}
